package com.zjj.disk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zjj.disk.pojo.Dictionary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper // 标记为MyBatis-Plus的Mapper
public interface DictionaryMapper extends BaseMapper<Dictionary> {
    // 继承BaseMapper，提供基本的CRUD操作
    @Select("SELECT * FROM dictionary WHERE parent_code = #{parentCode}")
    List<Dictionary> selectByParentCode(@Param("parentCode") String parentCode);
}
